# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=coretoppings
pkgver=4.4.0
pkgrel=1
pkgdesc="An activity viewer from the CoreApps family"
# armhf blocked by qt5-qtlocation
arch="all !armhf"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="
	cmake
	libcprime-dev
	libcsys-dev
	libdbusmenu-qt-dev
	libxcomposite-dev
	libxrender-dev
	qt5-qtbase-dev
	qt5-qtconnectivity-dev
	qt5-qtlocation-dev
	qt5-qtx11extras-dev
	samurai
	xcb-util-dev
	xcb-util-wm-dev
	"
source="https://gitlab.com/cubocore/coretoppings/-/archive/v$pkgver/coretoppings-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # No test suite

build() {
	cmake -B build -GNinja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8086c5c55f527a07d29aa7a262ab1f7cf6481d23c2c4e8e162ba7923d7a7cd7c19340c5df20e2f22ed70aa3a63852f6320cb439d22606cc282cb48158069acb8  coretoppings-v4.4.0.tar.gz
"
